package Chapter6;
import java.util.Random;
public class Example18 {
	public static void main(String[] args) {
		Random r1=new Random();
		System.out.println("creat class float random num "+r1.nextFloat());
		System.out.println("creat class int random num between 0 to 100: "+r1.nextInt(100));
		System.out.println("creat class double random num: "+r1.nextDouble());
	}

}
